@import "vars";
@import "./components/dashboard.less";


.app {
  background-color: @body-background;
  height: 100vh;
  display: flex;
  flex-direction: column;
  .ant-layout-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    .logo {
      width: 160px;
      float: left;
      color: #ffffff;
      font-size: 18px;
    }

    @media screen and (max-width: 576px) {
      padding: 0 20px;
    }
  }
  > .ant-layout-content {
    margin-top: 64px;
    height: calc(100vh - 64px - 60px);
    

    .ant-layout {
      height: 100%;
      overflow-y: auto;
      
    }

    .ant-layout-sider {
      height: 100%;
      // border-right: solid 2px #ddd;
      display: flex;
      justify-items: center;
      justify-content: center;

      @media screen and (max-width: @screen-xs) {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
      }
      // padding: 20px;
      .ant-layout-sider-children {
        width: 100%;
      }
      .choose-theme label {
        color: @text-color-inverse;
      }
      .theme-heading {
        color: @text-color-inverse;
        position: relative;
        .anticon {
          font-size: 24px;
          display: inline-block;
          margin-right: 10px;
        }
        .title {
          display: inline;
          position: absolute;
          visibility: visible;
          opacity: 1;
        }
      }
      .theme-selector-dropdown {
          min-height: 72px;
      }
      .color-row {
        padding: 5px 5px 5px 20px;
        &:nth-of-type(1) {
          padding-top: 20px;
        }
        .color-name {
          visibility: visible;
          opacity: 1;
          position: absolute;
          left: 60px;
          display: inline;
          color: @text-color-inverse;
        }
      }
      @xs-sider-width: 4px;
      @sm-sider-width: 50px;

      &.ant-layout-sider-collapsed {
        @media screen and (max-width: @screen-xs) {
          width: @xs-sider-width !important;
          max-width: @xs-sider-width !important;
          min-width: @xs-sider-width !important;
        }

        @media screen and (max-width: @screen-md) {
          width: @sm-sider-width !important;
          max-width: @sm-sider-width !important;
          min-width: @sm-sider-width !important;
        }
        .theme-heading {
          padding-left: 8px;
          .title {
            // display: none;
            visibility: hidden;
            opacity: 0;
            transition: visibility 0s, opacity 0.5s linear;
            height: 0;
          }

          .anticon {
           
          }
          
        }
        .color-row {
          
          padding: 0;
          .color-name {
            visibility: hidden;
            opacity: 0;
            transition: visibility 0s, opacity 0.5s linear;
            height: 0;
          }
          .color-palette {
            padding: 8px;
            @media screen and (max-width: @screen-md) {
              display: flex;
              justify-content: center;
              justify-items: center;
              width: 100%;
            }
          }
        }
        
      }
      .ant-layout-sider-zero-width-trigger-left {
        z-index: 1000;
        margin-top: -60px;
      }
      .theme-heading {
        padding: 20px;
        width: 100%;
        // .title {
        //   color: #ffffff;
        // }
      }
    }
    .ant-layout-content {
      // background-color: @body-background;
      padding: 20px;
    min-height: 280px;
      .ant-breadcrumb {
        width: 100%;
      }
    }
  }
  .ant-layout-footer {
    height: 60px;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}


.logo {
  height: 64px;
  position: relative;
  line-height: 64px;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  overflow: hidden;

  img {
    display: inline-block;
    vertical-align: middle;
    height: 32px;
  }
  
  h1 {
    display: inline-block;
    vertical-align: middle;
    font-size: 20px;
    margin: 0 0 0 12px;
    font-family: 'Myriad Pro', 'Helvetica Neue', Arial, Helvetica, sans-serif;
    font-weight: 400;
    color: @text-color-inverse;
  }
}

.ant-btn {
  &.btn-github {
    position: absolute;
    right: 0px;
    top: 15px;
    img {
      height: 24px;
      margin-right: 8px;
    }

    span {
      display: inline-block;
      vertical-align: bottom;
    }
  }
}

.field-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;

  .field-name {
    .anticon {
      margin-left: 5px;
    }
  }
}

.header-actions {
  position: absolute;
  top: 0;
  right: 16px;
}

.theme-card-wrapper {
  position: absolute;
  top: 92px;
  right: 28px;
  height: 86%;
}

.theme-edit {
  .preview-header, .preview {
    padding-right: 380px;
  }

  
}

.preview {
  max-width: 1600px;

  .abnormal-hint {
    margin-bottom: 20px;
  }
}

.options {
  margin-top: 10px;
  margin-bottom: 20px;
}

.components {
  &.input {
    width: 500px;
  }
  &.tree {
    .component-row {
      display: flex;
      justify-content: space-between;
    }
  }
  .component-row {
    margin-bottom: 12px;

    &.calendar {
      width: 300px;
    }

    .component-col {
      display: inline-block;
      margin-right: 14px;

      .badge-square {
        width: 42px;
        height: 42px;
        border-radius: 4px;
        display: inline-block;
        vertical-align: middle;
      }
    }
  }
}

.ant-back-top {
  right: 370px !important; 
}

.ant-select-item-option-selected {
  &:not(.ant-select-item-option-disabled) {
    color: @select-item-selected-option-color;
  }
}

.ant-spin-nested-loading {
  .ant-spin.ant-spin-lg.ant-spin-spinning {
    max-height: 100vh;
  }
}